<?php
/**
 * Created by PhpStorm.
 * User: reshared
 * Date: 2017/10/2
 * Time: 上午11:25
 */

namespace Index\Model;


class SettingModel extends BaseModel
{
//    skey 键
//    svalue 值
    protected $pk = 'skey';

    protected $tableName = 'setting';

    public function getByKeys($keys = array())
    {
        $key = implode(',', $keys);
        return $this->where("skey in '{$key}'")->select();
    }
}